<?php
require_once '../funciones/funciones.php';
require_once '../clases/c2php.php';

$con = new MySQL;
$c2php   = new c2php;
//$programa = $_POST["tokens"];
//$fuente = $_POST["fuente"];
$transaccion = $_POST["transaccion"];
$transaccionErrores = $_POST["tranErrores"];
$c2php->transaccionErrores = $transaccionErrores;
$sql = "select * from temporal where transaccion = '$transaccion' and tempIndVar1 = 'resultados' ";
$result = $con->consulta($sql);
$result = $con->unaFila($result);
$programa = $result["tempText1"];
$fuente = $result["tempVarchar1"];

$c2php->recibePrograma($programa, $fuente,$transaccion,$con);
?>
